function showBetween (theText, altText, startAt, stopAt) { var now = new Date(); var h = now.getHours(); if (startAt <= stopAt) { if ( h >= startAt & h <= stopAt) return(theText) else return (altText); } return ('** ERROR in JavaScript showBetween **'); }